﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace backend.Entity
{
    public class Project
    {
        public long Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 合同总价
        /// </summary>
        public float TotalPrice { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartDate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndDate { get; set; }
        /// <summary>
        /// 组织机构
        /// </summary>
        public string Organization { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 联系人
        /// </summary>
        public string Contacter { get; set; }
        /// <summary>
        /// 联系人手机
        /// </summary>
        public string Tel { get; set; }
        /// <summary>
        /// 状态：0未开始,1已启动,2已停止
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 参与人员
        /// </summary>
        public virtual ICollection<User> Users { get; set; }

        /// <summary>
        /// 费用记录
        /// </summary>
        public virtual ICollection<Payment> Payments { get; set; }

        /// <summary>
        /// 实施参数
        /// </summary>
        public virtual ICollection<Parametric> Parametrics { get; set; }

        /// <summary>
        /// 工作报告
        /// </summary>
        public virtual ICollection<Report> Reports { get; set; }

        /// <summary>
        /// 附件表
        /// </summary>
        public virtual ICollection<Attachment> Attachments { get; set; }
    }
}
